package com.sdy.hospitalguard.biz.service.impl;

import com.sdy.hospitalguard.biz.dto.BuildingDTO;
import com.sdy.hospitalguard.biz.mapper.BuildingMapper;
import com.sdy.hospitalguard.biz.model.Building;
import com.sdy.hospitalguard.biz.service.BuildingService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 楼表:building 服务实现类
 * </p>
 *
 * @author zzq
 * @since 2020-05-08
 */
@Slf4j
@Service
public class BuildingServiceImpl extends BaseServiceImpl<Building> implements BuildingService {
    @Autowired
    private BuildingMapper buildingMapper;

    @Override
    public List<BuildingDTO> queryBuilding(Integer areaId) {
        return buildingMapper.queryBuilding(areaId);
    }
}
